namespace EyeOpen.DddOrm.Domain.Repositories.Implementations
{
	using System.Linq;

	using EyeOpen.Domain.Repositories;

	using EyeOpen.Domain.Transactional;

	internal class PortalRepository :
		Repository<Portal>, IPortalRepository
	{
		public PortalRepository(ITransactionalCollection session)
			: base(session)
		{
		}

		public Portal ByName(string name)
		{
			return this.Single(x => x.Name == name);
		}
	}
}